<template>
</template>

<script>
export default {
	name: 'showScreen',
	beforeRouteEnter(to, from, next) {
		next(vm => {
			if (from.name == 'largeScreen') {
				vm.$router.go(-1);
			} else {
				vm.$router.push({
					path: '/largeScreen',
					name: 'largeScreen',
					component: 'largeScreen'
				})
			}
		})
	},
	created() {
		// if(localStorage.getItem('from') && localStorage.getItem('from')=="mainData"){
		// 	this.$router.go(-1);
		// 	localStorage.removeItem("from");

		// }else{
		//   this.$router.push({
		// 	path: '/mainData',
		// 	name: 'mainData',
		// 	component: 'mainData'
		//   })
		// }
	},
	mounted() {
		//window.location="static/index.html"

	}

}
</script>

<style></style>
